package com.xiaojian.pick.entity;

import lombok.Data;

@Data
public class TopicImg {
    private Integer id;     // 帖子图片 id
    private String imgSrc;  // 帖子图片路径
    private Integer topicId;    // 帖子

    public TopicImg(Integer id, String imgSrc, Integer topicId) {
        this.id = id;
        this.imgSrc = imgSrc;
        this.topicId = topicId;
    }

    public TopicImg() {
    }

    @Override
    public String toString() {
        return "TopicImg{" +
                "id=" + id +
                ", imgSrc='" + imgSrc + '\'' +
                ", topicId=" + topicId +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }
}